var express=require('express');
var router=express.Router();
var {getCarAll,getCaraudit,passcar,nopasscar} =require('../../service/car/carservice');
router.get('/getCarAll',async function(req,res,next){
    var data=req.query;
    res.send(await getCarAll(data))
    // console.log('11',await getCarAll(data));
})
//获取未审核车辆
router.get('/getCaraudit',async function(req,res,next){
    var data=req.query;
    res.send(await getCaraudit(data))
    // console.log('11',await getCarAll(data));
})
//车辆审核通过
router.get('/passcar',async function(req,res,next){
    var data=req.query;
    console.log('审核通过的id',data)
    passcar(data)
})
//车辆审核不通过
router.get('/nopasscar',async function(req,res,next){
    var data=req.query;
    nopasscar(data)
})
module.exports = router;